package com.ssm;

import com.ssm.conditional.LinuxConditional;
import com.ssm.conditional.WeindowConditional;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {
    @Conditional(WeindowConditional.class)
    @Bean
    public ListService wendinService(){
        return new WendowService();
    }

    @Conditional(LinuxConditional.class)
    @Bean
    public ListService linuxService(){
        return new LinuxService();
    }
}
